package mapper;

import com.root.health.bean.ElderhealthInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Repository
@Mapper
@Component
public interface HealthInfoMapper {
    public void health(long height, long weight, long systolicPressure, long diastolicPressure,
                       double temperature, double glucose, long heartbeat, long elderuserid, Timestamp healthdate);
    //添加用户基本健康信息
    public List<ElderhealthInfo> healthByid(long userid);
    //根据用户id查询用户基本健康信息
    public Integer healthByDate(Timestamp healthDate);
    //根据时间戳查询用户信息是否存在
    public void healthDel(long healthid);
    //根据信息id删除健康信息
    public void healthUpd(long healthid,long height, long weight, long systolicPressure, long diastolicPressure,double temperature,double glucose, long heartbeat);
    //根据健康信息id修改用户基本健康信息
}